package com.etc.togo.service;

import java.util.List;

import org.hibernate.service.spi.ServiceException;

import com.etc.togo.vo.ResultVO;

public interface IBaseService<T> {
	
	public void add(T t) throws ServiceException;
	
	public ResultVO delete(Class<T> entityClazz,Long id) throws ServiceException;
	
	public ResultVO update(T t) throws ServiceException;
	
	public ResultVO get(Class<T> entityClazz,Long id) throws ServiceException;
	
	public List<T> getAll(Class<T> entityClazz) throws ServiceException;
	
}
